package com.teemor.open.openauth.enums;


public enum ResultCode  {
    NOTLOGIN(401, "未登录"),
    TOKEN_EXPIRED(402, "token已过期"),
    NOT_AUTH(403, "没有权限"),//没有权限
    SUCCESS(200, "成功"),
    FAILED(400, "请求失败"),
    EXCEPTION(500, "内部错误"),

    /***** 业务返回码 *****/
    /***** 认证模块(1000-1010)   ****/
    VERIFY_ERROR(1001, "验证码错误或已失效"),
    ACCOUNT_NOT_EXISTS(1002,"帐号不存在"),
    PASSWORD_ERROR(1003,"密码错误")

    ;



    private Integer code;
    private String msg;
    ResultCode(Integer code, String msg){
        this.code=code;
        this.msg = msg;
    }
    public Integer value(){
        return code;
    }

    public String msg() {
        return msg;
    }
}
